package cn.wolfcode.trip.base.query;

import lombok.Getter;
import lombok.Setter;
import org.springframework.util.StringUtils;

@Setter@Getter
public class QueryObject {
    private int currentPage = 1;
    private int pageSize = 4;

    private String keyword; //关键字

    private String orderBy; //排序

    protected String empty2Null(String str) {
        return StringUtils.hasLength(str) ? str : null;
    }

    public String getKeyword() {
        return empty2Null(keyword);
    }
}

